This sample illustrates how the SetHideOnSwitch and GetHideOnSwitch routines can be used to hide an application. These routines were first documented in Technote TN1102, "Mac OS 8". On the world wide web, documentation for these routines can be found at the address:
You may incorporate this sample code into your applications without restriction, though the sample code has been provided "AS IS" and the responsibility for its operation is 100% yours. However, what you are not permitted to do is to redistribute the source as "DSC Sample Code" after having made changes. If you're going to re-distribute the source, we require that you make it clear in the source that the code was descended from Apple Sample Code, but that you've made changes.
Change History (most recent first):
12/6/1999 created
Files:
':HowToHideApp Data:' - CodeWarrior project data is stored in this folder.
:obj: - object files created during builds are stored in this folder.
HideCalls.c - routines for hiding your application.
HideCalls.h - declarations for routines in HideCalls.c.
HowToHideApp - A test application illustrating how to hide your app.
HowToHideApp - C source for the test application.
HowToHideApp.prj - CodeWarrior project file to build the test application.
HowToHideApp.r - MPW Rez file for some of the test application's resources.
HowToHideApp.rsrc - ResEdit resource file for some of the test application's resources.
MakeFile - MPW make file that builds the test application.